package ooday05;
//getter/setter的演示
public class GetterSetterDemo {
    public static void main(String[] args) {
        Point p=new Point();
        p.setX(100);
        p.setX(200);
        System.out.println("x="+p.getX()+",y="+p.getY());
    }
}
